<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增OBD设备</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">OBD序号<span class="check-tips"></span></label>
            <div class="controls">
                <input type="number" class="text input-large" name="id" value="{$obd.obdid}" readonly="readonly">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">规格型号<span class="check-tips"></span></label>
            <div class="controls">
                <select name="model_id">
                <volist name="models" id="vo">
                    <option value="{$vo.model_id}" <if condition="$vo.model_id eq $obd.model_id"> selected </if>>{$vo.modelname}</option>
                </volist>
                </select>
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Obd/index')}');
    </script>
</block>
